<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Position/index')}">职位列表</a></li>
        <li><a href="{:url('Position/add')}">添加职位</a></li>
    </ul>

    <form class="well form-inline margin-top-20" method="post" action="{:url('Position/index')}">
        职位名称:
        <input type="text" class="form-control" name="name" style="width: 200px;"
               value="{$keyword|default=''}" placeholder="请输入分类名称">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('AdminCategory/index')}">清空</a>
    </form>

    <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th>名称</th>
            <th>状态</th>
            <th width="200">操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="lists" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td>{$vo.status == 1 ? '正常':'冻结'}</td>
                <td>
                    <a href="{:url('Position/edit',['id'=>$vo.id])}">编辑</a>&nbsp;&nbsp;
                    <a class="js-ajax-delete" href="{:url('Position/delete',['id'=>$vo.id])}">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
        <tfoot>
        <tr>
            <th width="50">ID</th>
            <th>分类名称</th>
            <th>状态</th>
            <th width="200">操作</th>
        </tr>
        </tfoot>
    </table>

</div>

<script src="__STATIC__/js/admin.js"></script>
<script>

</script>

</body>
</html>